import {api} from "@/boot/axios";

export function getAttendance(data) {
    return api({
        url:'/attendance/getall',
        method:'get',
        params:data
    })

}

export function deleteAttendant(id) {
    return api({
        url:'/attendance/delete?'+new URLSearchParams({id:id}),
        method:'get'
    })
}

export function updateAttendant(data) {
    return api({
        url:'/attendance/update',
        method:'post',
        data:data
    })
}
export function getInfo(params) {
    return api({
        url:'/attendance/info',
        method:'get',
        params:params
    })

}